package com.rika.service.impl;

import com.rika.dao.CheckStockDao;
import com.rika.pojo.CheckStock;
import com.rika.service.CheckStockService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CheckStockServiceImpl implements CheckStockService {
    @Resource
    private CheckStockDao checkStockDao;
    @Override
    public void addCheckStock(CheckStock checkStock) {
        checkStockDao.addCheckStock(checkStock);
    }

    @Override
    public List<CheckStock> selectInCheckStock(String productCode) {
        return checkStockDao.selectInCheckStock(productCode);
    }

    @Override
    public List<CheckStock> selectOutCheckStock(String productCode) {
        return checkStockDao.selectOutCheckStock(productCode);
    }
}
